
<?php

        header("Cache-Control: no-cache, must-revalidate");
		header("Cache-Type: text/plain; charset=UTF-8");//charset=ISO-8859-1");
                require_once '../connexion (2).php';

		
		$req2="select * from STAGE as s, entreprise as e where
                       s.IDENTREPRISE=e.IDENTREPRISE AND IDSTAGE='".$_POST["IDs"]."'";
                $r2=$connexion->query($req2);

        
		while($res=$r2->fetch(PDO::FETCH_ASSOC)){
		  
		   $val=$res["SUJETSTAGE"];
                   $val1=$res["TELENTREPRISE"];
		   
		   
		   
		   }
		  

		 //mysql_close($connexion);
        echo "Téléphone: ".$val1.",\n\nSujet : ".$val;
?>
